from django.urls import path
from apps.recruit.views.Jobs import RecommendJob,LatestJob,DetailJob,JobVisit,JobCollect,JobCancelCollect,JobSearch
from apps.recruit.views.Cities import HotCity
from apps.recruit.views.Enterprises import HotEnterprise,EnterpriseDetail,EnterpriseVisit,EnterpriseCollect,EnterpriseCancelCollect


urlpatterns = [
    path('recruits/search/recommend/',RecommendJob), # 推荐招聘信息
    path('recruits/search/latest/',LatestJob),  # 最近招聘信息
    path('enterprise/search/hotlist/',HotEnterprise),   # 热门企业
    path('city/hotlist/',HotCity),  # 热门城市

    path('enterprise/<pk>/',EnterpriseDetail), # 企业详情
    path('enterprise/<int:pk>/visit/',EnterpriseVisit), # 企业页面访问量

    path('recruits/<pk>/',DetailJob),   # 职位详情
    path('recruits/<int:pk>/visit/',JobVisit), # 职位页面访问量

    path('recruits/<int:pk>/collect/',JobCollect), # 职位收藏
    path('recruits/<int:pk>/cancelcollect/',JobCancelCollect),# 职位取消收藏

    path('enterprise/<int:pk>/collect/',EnterpriseCollect ),  # 公司收藏
    path('enterprise/<int:pk>/cancelcollect/', EnterpriseCancelCollect),  # 公司取消收藏

    path('recruits/search/city/keyword/',JobSearch) # 职位搜索
]
